/**
 * Copyright (C) 2009+ Spark Zheng
 *
 * @file        src/protocols/def_udp/def_udp.h 
 * @date        2010-04-22
 * @brief	protocol_module
 * @see         dserver
 * @history
 */

#ifndef _DSERVER_DEF_UDP_H
#define _DSERVER_DEF_UDP_H

#ifdef __cplusplus
extern "C" {
#endif

#include <dlib/global.h>

#include "connection.h"
#include "prot_types.h"
#include "filt_types.h"

//#define DEF_UDP_CLOSE
#define DEF_UDP_SUCCESS
//#define DEF_UDP_IGNORE

extern int protocol_on_load(const void *settings, prot_node_t *prot);

extern int protocol_session_init(void *arg);

extern prot_ret_t protocol_session_worker(void *arg);

extern void protocol_session_exit(void *arg);

extern void protocol_on_unload(prot_node_t *prot);

#ifdef __cplusplus
}
#endif
#endif
